/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :cloud-parent
 * File Name: org.easytouseit.fiegn.controller
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-09-28 16:56
 * History:  
 * 1. Date: 2018-09-28
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.fiegn.controller;

import org.easytouseit.fiegn.service.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guojm
 * @version V1.0
 * @date 2018-09-28 下午 16:56
 */
@RestController
public class ConsumerController {
    @Autowired
    HelloRemote helloRemote;

    @RequestMapping("/hello/{name}")
    public String index(@PathVariable("name") String name) {
        return helloRemote.hello(name);
    }
}
